package com.qiang.androidinfo.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.telephony.TelephonyManager;

/**
 * Created by HP on 2016/9/3.
 */
public class SystemServiceUtils {


    /**获取TelphonyManager
     * @param context
     * @return
     */
    public static  TelephonyManager getTelephonyManager(Context context) {
        TelephonyManager systemService = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        return systemService;
    }


    /** 获得ConnectiviytManager
     * @param context
     * @return
     */
    public static ConnectivityManager getConnectivityManager(Context context){
        ConnectivityManager systemService = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
        return systemService;
    }


}
